﻿<controls:WizardPage x:Class="WizardSampleApp.Views.Wizard.Pages.StepPage01"
                     xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
                     xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
                     xmlns:controls="clr-namespace:Microsoft.Windows.UserControls;assembly=Microsoft.Windows.UserControls.Wpf"
                     xmlns:viewModel="clr-namespace:WizardSampleApp.ViewModels"
                     xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
                     xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
                     PageHeaderTitle="{Binding Header.Title}"
                     PageHeaderDescription="{Binding Header.Description}"
                     PageType="Normal"
                     mc:Ignorable="d" 
                     d:DataContext="{d:DesignInstance viewModel:WizardPagePageOneViewModel, IsDesignTimeCreatable=True}"
                     d:DesignHeight="300" 
                     d:DesignWidth="300" >
    <controls:WizardPage.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="pack://application:,,,/WizardSampleApp;component/Themes/PageIndexContent.xaml"/>
            </ResourceDictionary.MergedDictionaries>           
        </ResourceDictionary>
    </controls:WizardPage.Resources>

    <controls:WizardPage.DataContext>
        <viewModel:WizardPagePageOneViewModel/>
    </controls:WizardPage.DataContext>

    <controls:WizardPage.PageIndexContent>
        <Binding Source="{StaticResource PageIndexContentControl}"/>
    </controls:WizardPage.PageIndexContent>
    
    <Grid Margin="12" >
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="6"/>
            <RowDefinition Height="Auto"/>
            <RowDefinition Height="6"/>
            <RowDefinition Height="*"/>
        </Grid.RowDefinitions>
        <TextBlock Grid.Row="0" TextWrapping="Wrap" > This is the explanation of Page 01</TextBlock>
        <TextBox Grid.Row="2" x:Name="txtDummy" Text="{Binding DummyText}" Width="150" HorizontalAlignment="Left" VerticalAlignment="Top" />
    </Grid>
</controls:WizardPage>
